package com.tcreditdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by xiongzheng on 2018/10/16.
 */

public class aaaa extends AppCompatActivity implements bbb.Onchanger{

    private SettingItemView item1;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aaa);
        initialize();
        bbb.setOnchangerlistener(this);
    }

    public void haha(View view){
       // item1.setRrightItemOnlyText(getApplicationContext());
       // item1.setmarginHetigh();
        item1.setRightItemOnlyswitch();
    }



    public void hehe(View view){
        item1.setitemHeight();
    }

    public void  abc(View view){

        //item1.setThisHeight(R.dimen.x200);
        startActivity(new Intent(this,bbb.class));

    }

    private void initialize() {

        item1 = (SettingItemView) findViewById(R.id.item1);
    }

    @Override
    public void changer() {
        item1.setThisHeight(R.dimen.x200);
    }
}
